
<admintpl file="header" />
<body>

    <div class="wrap js-check-wrap">

        <ul class="nav nav-tabs">
            <li><a href="{:U('Label/CategoryAdmin/category_list')}">分类列表</a></li>
            <li class="active"><a>新建分类</a></li>
        </ul>

        <form class="form-horizontal js-ajax-form" method="post">

            <input type="hidden" name="id" value="{$info['id']}">

            <div class="tabbable">
                <div class="tab-content">
                    <div class="tab-pane active">
                        <fieldset>

                            <div class="control-group">
                                <label class="control-label">分类名称</label>
                                <div class="controls">
                                    <input type="text" name="name" value="{$info.name}"><span class="form-required">*</span>
                                </div>
                            </div>

                            <div class="control-group">
                                <label class="control-label">所属分类</label>
                                <div class="controls">
                                    <select name="type">
                                        <option value="0">请选择所属分类</option>
                                        <?php foreach($type_list as $k => $v) { ?>
                                            <option value="{$k}" {$info['type'] == $k ? "selected" : ''}>{$v}</option>
                                        <?php }?>
                                    </select>
                                </div>
                            </div>

                            <div class="control-group">
                                <label class="control-label">状态</label>
                                <div class="controls">
                                    <input type="radio" name="status"  value="1" {$info['status']  == 1 ? "checked" : ''}> 显示
                                    <input type="radio" name="status"  value="0" {$info['status']  == 0 ? "checked" : ''}> 隐藏
                                </div>
                            </div>
                        </fieldset>
                    </div>
                </div>
            </div>
            <div class="form-actions">
                <button class="btn btn-primary" type="submit">保存</button>
                <a class="btn" href="javascript:history.back(-1);">返回</a>
            </div>
        </form>
    </div>
    <script type="text/javascript" src="__PUBLIC__/js/common.js"></script>

</body>
</html>